package com.sa07.resources;

import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 * 资源类
 * 
 * @author Long.shangbo
 *
 * 2014-2-15 上午6:35:34
 */
public class ResourceUtils {
	
	private static final String IMG_HOME = "images";
	
	/**
	 * 获得图片路径
	 * @param iconName
	 * @return
	 */
	public static Icon getIcon(String iconName){
		return new ImageIcon(ResourceUtils.class.getResource(IMG_HOME + "/" + iconName));
	}
	
}
